#ifndef __SIMPLECHAT__
#define __SIMPLECHAT__

#include <iostream>
#include <stdio.h>
#include <vector>
#include <thread>
#include <string>
#include "Peer.h"
#include "Debug\RakPeerInterface.h"
#include "Debug\MessageIdentifiers.h"
#include "Raknet\BitStream.h"
#include "Raknet\PacketPriority.h"

#define MAX_CLIENTS 10
#define SERVER_PORT 60000

//defined a new type of message
enum GameMessages
{
	ID_GAME_MESSAGE_1 = ID_USER_PACKET_ENUM+1
};

using std::vector;
using std::cout;
using std::endl;
using std::cin;
using std::string;
using namespace RakNet;

class SimpleChat
{
public:
	Peer *peer;
	SimpleChat();
	~SimpleChat();
	void RunService();
	bool IsServer();

private:
	vector<Peer*> clients;
	void RunClientCode();
	void RunServerCode();
};

#endif // !__SIMPLECHAT__
